<!--{if empty($diymode)}-->
	<!--{subtemplate common/header}-->

	<div id="pt" class="bm cl">
		<!--{subtemplate common/simplesearchform}-->
		<div class="z">
			<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
			$_G[setting][navs][4][navname]
		</div>
	</div>

	<div id="ct" class="ct3_a wp cl bg_home">
		<div class="appl s_home">
       
        	<!--Left -->
            <!--{if $_G[uid] }-->
                <div class="bm bw0" >
                    <table cellpadding="0" cellspacing="0" class="mi">
                        <tr>
                            <th>
                                <div class="avatar mbn cl">
                                    <a href="home.php?mod=spacecp&ac=avatar" title="{lang memcp_avatar}" id="edit_avt"><span id="edit_avt_tar"><strong>{lang memcp_avatar}</strong></span><!--{avatar($_G[uid],big)}--></a>
                                </div>
                                <p class="left_profile">
                                	<a href="home.php?mod=space&username=$space[username]" class="o xi2"><strong>{lang view_my_space}</strong></a>
                                    <!--{if $_G['group']['allowinvisible']}-->
                                        <span id="loginstatus" class="login_status">
                                            <a id="loginstatusid" href="member.php?mod=switchstatus" title="{lang login_switch_invisible_mode}" onclick="ajaxget(this.href, 'loginstatus');return false;" class="xi2"></a>
                                        </span>
                                    <!--{/if}-->
                                </p>
                            </th>
                        </tr>
                    </table>
                </div>
            	<!--{if $space[profileprogress] != 100}-->
					<div class="bm">
						<div class="bm_c">
							<div class="pbg mbn">
                            	<div class="pbr" style="width: {if $space[profileprogress] < 2}2{else}$space[profileprogress]{/if}%;"></div>
                            </div>
							<p class="pbg_info">{lang profile_completed} <b class="big">$space[profileprogress]%</b><br /><a href="home.php?mod=spacecp&ac=profile" class="xi2">{lang fix_profile}</a></p>
						</div>
					</div>
				<!--{/if}-->
			<!--{/if}-->

            <!--{template common/userabout}-->

			<!--{if $_G[uid] }-->
                <!--{if $visitorlist}-->
                <div class="bm">
                    <div class="bm_h cl">
                        <span class="y">
                            <a href="home.php?mod=space&username=$space[username]&do=friend&view=visitor">{lang all}</a>
                        </span>
                        <h2>{lang recent_visit}</h2>
                    </div>
                    <div class="bm_l">
                        <ul class="inlinelist">
                            <!--{loop $visitorlist $key $value}-->
                            <li>
                                <!--{if $value[vusername] == ''}-->
                                    <div class="avt"><img src="{STATICURL}image/magic/hidden.gif" alt="{lang anonymity}" /></div>
                                    <p>{lang anonymity}</p>
                                    <span><!--{date($value[dateline], 'u', 9999, $_G[setting][dateformat])}--></span>
                                <!--{else}-->
                                    <a href="home.php?mod=space&uid=$value[vuid]" title="{if $ols[$value[vuid]]}{lang online}{/if}" class="avt_l" c="1">
                                        <!--{if $ols[$value[vuid]]}--><em class="gol"></em><!--{/if}-->
                                        <!--{avatar($value[vuid],small)}-->
                                    </a>
                                    <strong><a href="home.php?mod=space&uid=$value[vuid]" title="$value[username]">$value[vusername]</a></strong>
                                    <br />
                                    <span><!--{date($value[dateline], 'u', 9999, $_G[setting][dateformat])}--></span>
                                <!--{/if}-->
                            </li>
                            <!--{/loop}-->
                        </ul>
					</div>
                </div>
                <!--{/if}-->
                <!--{if $olfriendlist}-->
                    <div class="bm">
                        <div class="bm_h cl">
                            <span class="y">
                                <a href="home.php?mod=space&username=$space[username]&do=friend">{lang all}</a>
                            </span>
                            <h2>{lang my_friends}</h2>
                        </div>
                        <div class="bm_l">
                            <ul class="inlinelist">
                                <!--{loop $olfriendlist $key $value}-->
                                <li>
                                    <a href="home.php?mod=space&uid=$value[uid]" title="{if $ols[$value[uid]]}{lang online}{/if}" class="avt_l" c="1">
                                        <!--{if $ols[$value[uid]]}--><em class="gol"></em><!--{/if}-->
                                        <!--{avatar($value[uid],small)}-->
                                    </a>
                                    <strong><a href="home.php?mod=space&uid=$value[uid]" title="$value[username]">$value[username]</a></strong>
                                    <br />
                                    <span><!--{if $value[lastactivity]}--><!--{date($value[lastactivity], 'u', 9999, $_G[setting][dateformat])}--><!--{else}-->{lang hot}($value[num])<!--{/if}--></span>
                                </li>
                                <!--{/loop}-->
                            </ul>
                        </div>
                    </div>
                    <!--{/if}-->
            <!--{/if}-->

		</div>
		<!--/sidebar-->
		<div class="sd ptm">
        	<!-- Right -->
			<!--{if $_G[uid] }-->
				<!--{if $_G['setting']['taskon'] && !empty($task) && is_array($task)}-->
                <!-- Nhiem vu cho thanh vien -->
				<div class="bm">
					<div class="bm_h cl">
						<span class="y">
							<a href="home.php?mod=task">{lang all}</a>
						</span>
						<h2>{lang task}</h2>
					</div>
					<div class="bm_c">
						<p class="pbm">{lang space_home_message}</p>
						<hr class="da m0" />
						<dl class="xld cl">
							<dd class="m"><img src="$task[icon]" width="64" height="64" alt="Icon" /></dd>
							<dt><a href="home.php?mod=task&do=view&id=$task[taskid]">$task[name]</a></dt>
							<dd>
								<p>$task[description]</p>
								<!--{if in_array($task['reward'], array('credit', 'magic', 'medal', 'invite', 'group'))}-->
									<p>
										<!--{if $task['reward'] == 'credit'}-->
											{lang gettable} <strong class="xi1">$task[bonus]</strong> $_G['setting']['extcredits'][$task[prize]][title] $_G['setting']['extcredits'][$task[prize]][unit]
										<!--{elseif $task['reward'] == 'magic'}-->
											{lang gettable} {lang magics_title} $listdata[$task[prize]] <strong class="xi1">$task[bonus]</strong> {lang magics_unit}
										<!--{elseif $task['reward'] == 'medal'}-->
											{lang gettable} {lang medals} <strong class="xi1">1</strong> {lang unit}
										<!--{elseif $task['reward'] == 'invite'}-->
											{lang gettable} {lang invite_code} <strong class="xi1">$task[prize]</strong> {lang unit}
										<!--{elseif $task['reward'] == 'group'}-->
											{lang step_up} {lang usergroup}{lang level}
										<!--{/if}-->
									</p>
								<!--{/if}-->
							</dd>
						</dl>
					</div>
				</div>
				<!--{/if}-->
				<!--{if !empty($magic) && is_array($magic)}-->
				<div class="bm">
					<div class="bm_h cl">
						<span class="y">
							<a href="home.php?mod=magic">{lang all}</a>
						</span>
						<h2>{lang magic}</h2><!-- Cong cu -->
					</div>
					<div class="bm_c">
						<dl class="xld cl">
							<dd class="m"><img src="{STATICURL}/image/magic/$magic[pic]" alt="$magic[name]" title="$magic[description]" /></dd>
							<dt>$magic[name]</dt>
							<dd>
								<p>$magic[description]</p>
								<p>{lang magics_price}
									<!--{if {$_G['setting']['extcredits'][$magic[credit]][unit]}}-->
										{$_G['setting']['extcredits'][$magic[credit]][title]} <strong class="xi1">$magic[price]</strong> {$_G['setting']['extcredits'][$magic[credit]][unit]}/{lang magics_unit}
									<!--{else}-->
										<strong class="xi1">$magic[price]</strong> {$_G['setting']['extcredits'][$magic[credit]][title]}/{lang magics_unit}
									<!--{/if}-->
								</p>
								<p>
									<!--{if $magic[num] > 0}-->
										<a href="home.php?mod=magic&action=shop&operation=buy&mid=$magic[identifier]" onclick="showWindow('magics', this.href);return false;" class="xi2 xw1">{lang magics_operation_buy}</a>
										<!--{if $_G['group']['allowmagics'] > 1}-->
											<span class="pipe">|</span>
											<a href="home.php?mod=magic&action=shop&operation=give&mid=$magic[identifier]" onclick="showWindow('magics', this.href);return false;" class="xi2">{lang magics_operation_present}</a>
										<!--{/if}-->
									<!--{else}-->
										<span class="xg1">{lang magic_empty}</span>
									<!--{/if}-->
								</p>
							</dd>
						</dl>
					</div>
				</div>
				<!--{/if}-->

				<!--{if $birthlist}-->
				<div class="bm">
					<div class="bm_h cl">
						<h2>{lang friends_birthday_reminder}</h2>
					</div>
                    <div class="bm_l">
                        <ul class="inlinelist">
                            <!--{loop $birthlist $key $values}-->
                            <li>
                                <a href="home.php?mod=space&uid=$value[uid]" title="{if $ols[$value[uid]]}{lang online}{/if}" class="avt_l" c="1">
                                    <!--{if $ols[$value[uid]]}--><em class="gol"></em><!--{/if}-->
                                    <!--{avatar($value[uid],small)}-->
                                </a>
                                <strong><a href="home.php?mod=space&uid=$value[uid]">$value[username]</a></strong>
                                <br /><br />
                                <span><!--{if $values[0]['istoday']}-->{lang today}<!--{else}-->{$values[0][birthday]}/{$values[0][birthmonth]}<!--{/if}--></span>
                                <div class="clear"></div>
                            </li>
                            <!--{/loop}-->
                        </ul>
                    </div>
				</div>
				<!--{/if}-->
                
                <!--{if $recommendusermake}-->
                <div class="bm">
                    <div class="bm_h cl">
                    	<span class="y">
							<a href="home.php?mod=spacecp&ac=friend&op=find">{lang all}</a>
						</span>
                        <h2>{lang friend_friend_might_know}</h2>
                    </div>
                    <div class="bm_l">
                        <ul class="inlinelist">
                            <!--{loop $recommendusermake $key $values}-->
                            <li>
                                <a class="avt_l" href="home.php?mod=space&uid=$values[uid]" title="$values[username]" c="1"><!--{avatar($values[uid],small)}--></a>
                                <strong><a href="home.php?mod=space&uid=$values[uid]" title="$values[username]">$values[username]</a></strong>
                                <br /><br />
                                <span><a class="addbuddy" style="padding-left:20px; font-size:12px;" href="home.php?mod=spacecp&ac=friend&op=add&uid=$values[uid]&handlekey=friendhk_{$values[uid]}" id="a_friend_friend_$key" onclick="showWindow(this.id, this.href, 'get', 0);" >{lang add_friend}</a></span>
                                <div class="clear"></div>
                            </li>
                            <!--{/loop}-->
                        </ul>
                	</div>
                </div>
				<!--{/if}-->

			<!--{/if}-->

				<!--{if $defaultusers}-->
                	<!-- Ban be dc de cu -->
                    <div class="bm">
                        <div class="bm_h cl">
                            <h2>{lang friends_recommended}</h2>
                        </div>
                        <div class="bm_l">
                            <ul class="inlinelist">
                                <!--{loop $defaultusers $key $value}-->
                                <li>
                                    <a href="home.php?mod=space&uid=$value[uid]" title="{if $ols[$value[uid]]}{lang online}{/if}" class="avt_l" c="1">
                                        <!--{if $ols[$value[uid]]}--><em class="gol"></em><!--{/if}-->
                                        <!--{avatar($value[uid],small)}-->
                                    </a>
                                    <strong><a href="home.php?mod=space&uid=$value[uid]" title="$value[username]">$value[username]</a></strong>
                                </li>
                                <!--{/loop}-->
                            </ul>
                        </div>
                    </div>
				<!--{/if}-->

				<!--{if $showusers}-->
               		<!-- Danh sach thanh vien dc lam noi bat -->
                    <div class="bm">
                        <div class="bm_h cl">
                            <span class="y">
                                <a href="misc.php?mod=ranklist&type=member">{lang all}</a>
                            </span>
                            <h2>{lang home_show_members}</h2>
                        </div>
                        <div class="bm_l">
                            <ul class="inlinelist">
                                <!--{loop $showusers $key $value}-->
                                <li>
                                    <a href="home.php?mod=space&uid=$value[uid]" title="{if $ols[$value[uid]]}{lang online}{/if}" class="avt_l">
                                        <!--{if $ols[$value[uid]]}--><em class="gol"></em><!--{/if}-->
                                        <!--{avatar($value[uid],small)}-->
                                    </a>
                                    <strong><a href="home.php?mod=space&uid=$value[uid]" title="$value[username]">$value[username]</a></strong>
                                    <br /><br />
                                    <span>{lang diem_xap_hang}: $value[credit]</span>
                                    <div class="clear"></div>
                                </li>
                                <!--{/loop}-->
                            </ul>
                        </div>
                    </div>
				<!--{/if}-->

				<!--{if $newusers}-->
                	<!-- Thanh vien moi tham gia -->
                    <div class="bm">
                        <div class="bm_h cl">
                            <h2>{lang new_join_members}</h2>
                        </div>
                        <div class="bm_l">
                            <ul class="inlinelist">
                                <!--{loop $newusers $key $value}-->
                                <li>
                                    <a href="home.php?mod=space&uid=$value[uid]" title="{if $ols[$value[uid]]}{lang online}{/if}" class="avt_l">
                                        <!--{if $ols[$value[uid]]}--><em class="gol"></em><!--{/if}-->
                                        <!--{avatar($value[uid],small)}-->
                                    </a>
                                    <strong><a href="home.php?mod=space&uid=$value[uid]" title="$value[username]">$value[username]</a></strong>
                                    <br /><br />
                                    $value[regdate]
                                    <div class="clear"></div>
                                </li>
                                <!--{/loop}-->
                            </ul>
                        </div>
                    </div>
				<!--{/if}-->
				<!-- Anything .... -->

			<!--{hook/space_home_side_bottom}-->
		</div>

        <!--Center -->
		<div class="mn ptm">
			<!--{if $space['uid'] && $space[self]}-->
				<div class="bm bw0 add-sear" >
					<table cellpadding="0" cellspacing="0" class="mi mbm" width="100%">
						<tr>
							<td>
                            
								<h3 class="xs2">
									<span class="y xw0 xs1">{lang have} <em class="xi1"><strong>$space[views]</strong></em> {lang visit_per_man}</span>
									<a href="home.php?mod=space&username=$space[username]"{eval g_color($space[groupid]);} title="{$space[username]}">{$space[username]}</a>
									<!--{eval g_icon($space[groupid]);}-->
								</h3>
                                <div style="border:1px dashed green;">
                                    <h2 class="xs2"><a href="home.php?mod=space&username=$space[username]" c="1">{if $space[realname]}$space[realname] ($space[username]) {else}$space[username]{/if}</a></h2>
                                    <div>
                                        <ul>
                                        	{if $space[company]}<li>Đang làm {if $space[occupation]}$space[occupation]{else}việc{/if} tại $space[company]</li>{/if}
                                            {if $space[graduateschool]}<li>Từng học tại $space[graduateschool]</li>{/if}
                                            {if $space[resideprovince]}<li>Đang sống tại {if $space[residecity]}$space[residecity], {/if}$space[resideprovince]</li>{/if}
                                            {if $space[birthprovince]}<li>Đến từ {if $space[birthcity]}$space[birthcity], {/if}$space[birthprovince]</li>{/if}
                                            {if $space[birthday] || $space[birthmonth] || $space[birthyear]}<li>Sinh {if $space[birthday]} ngày $space[birthday]{/if} {if $space[birthmonth]}tháng $space[birthmonth]{/if} {if $space[birthyear]}năm $space[birthyear]{/if}</li>{/if}
                                            {if $_G[uid] == $space[uid]}<li><a href="home.php?mod=spacecp&ac=profile">Cập nhật tiếp</a></li>{/if}
                                        </ul>
                                    </div>
                                </div>
                                
								<!--{template home/space_simple_share}-->
							</td>
						</tr>
					</table>
					<!--[diy=diycontentmiddle]--><div id="diycontentmiddle" class="area"></div><!--[/diy]-->
					<!--{hook/space_home_top}-->
				</div>
                
				<!--{ad/feed/bm}-->
                <!--{if $acitvemessage}-->
				<div class="div_warning">$acitvemessage</div>
                <!--{/if}-->
                
                <!--{if $space[profileprogress] <= 65}-->
                <div class="div_warning">
                    <h2><img src="{IMGDIR}/my-profile_32x32.png" align="absmiddle" /> {lang setup_profile_continue}</h2>
                    <p class="div_warning_tip">{lang setup_profile_continue_tip}</p>
                    <p class="div_warning_btn"><a href="home.php?mod=spacecp" class="pn btn"><img src="{IMGDIR}/my_account.png" align="absmiddle"/> {lang setup_profile_continue}</a></p>
                </div>
               
                <!--{/if}-->
                
                <!--{if $_G[member][friendnum] <= 10}-->
                <div class="div_warning">
                 	<h2><img src="{IMGDIR}/user_finder_32x32.png" align="absmiddle" /> {lang find_more_friend_title}</h2>
                    <p class="div_warning_tip">{lang find_more_friend_tip}</p>
                    <p class="div_warning_btn"><a href="home.php?mod=spacecp&ac=friend&op=find" class="pn btn"><img align="absmiddle" src="{IMGDIR}/user_finder_16x16.png" /> {lang find_more_friend}</a> <a href="home.php?mod=spacecp&ac=invite" class="pn btn"><img src="{IMGDIR}/invite_add.png" align="absmiddle"/> {lang update_invite_setup}</a></p>
                 </div>
                <!--{/if}-->
                
				<div class="bm bw0">
					<ul id="woogtv" class="tb cl">
						<li$actives[we]><a href="home.php?mod=space&do=home&view=we">{lang friend_feed}</a></li -->
						<li$actives[me]><a href="home.php?mod=space&do=home&view=me">{lang my_feed}</a></li -->
						<!-- li$actives[all]><a href="home.php?mod=space&do=home&view=all">{lang view_all}</a></li -->
						<!--{if $_G['setting']['my_app_status']}-->
						<li$actives[app]><a href="home.php?mod=space&do=home&view=app">{lang view_app_feed}</a></li>
						<!--{/if}-->
						<!--{hook/space_home_navlink}-->
						<!--{if $_G['setting']['magicstatus'] && $_G['setting']['magics']['thunder']}-->
						<li class="y"><a id="a_magic_thunder" href="home.php?mod=magic&mid=thunder" onclick="showWindow('magics', this.href, 'get', 0)" style="padding-left: 18px; background: url({STATICURL}image/magic/thunder.small.gif) no-repeat 0 50%;">{$_G[setting][magics][thunder]}</a></li>
						<!--{/if}-->
					</ul>
			<!--{else}-->
				<div class="bm bw0">
				<!--{eval
					$_G['home_tpl_spacemenus'][] = "<a href=\"home.php?mod=space&username=$space[username]&do=home&view=me\">{lang they_feed}</a>";
				}-->
				<!--{template home/space_menu}-->

			<!--{/if}-->

			<!--{if $_GET[view] == 'all' && 1 == 0}-->
				<p class="tbmu">
					<a href="home.php?mod=space&do=home&view=all&order=dateline"$orderactives[dateline]>{lang newest_feed}</a><span class="pipe">|</span>
					<a href="home.php?mod=space&do=home&view=all&order=hot"$orderactives[hot]>{lang hot_feed}</a>
				</p>
			<!--{elseif $_GET[view] == 'app' && $_G['setting']['my_app_status']}-->
				<p class="tbmu">
					<a href="home.php?mod=space&do=home&view=app&type=we"$typeactives[we]>{lang what_friend_playing}</a><span class="pipe">|</span>
					<a href="home.php?mod=space&do=home&view=app&type=me"$typeactives[me]>{lang own}</a><span class="pipe">|</span>
					<a href="home.php?mod=space&do=home&view=app&type=all"$typeactives[all]>{lang what_everybody_playing}</a>
				</p>
			<!--{elseif $groups && 1 == 0}-->
				<p class="tbmu">
					<a href="home.php?mod=space&do=home&view=we"{$gidactives[-1]}>{lang all_friends}</a><!--{loop $groups $key $value}--><span class="pipe">|</span><a href="home.php?mod=space&do=home&view=we&gid=$key"{$gidactives[$key]}>$value</a><!--{/loop}-->
				</p>
			<!--{/if}-->

<!--{else}-->
<!--{eval $home_run = true;}-->
<!--{eval $pageview = lang('home/template','feed');}-->
<!--{template home/space_header}-->
 
 		<ul id="woogtv" class="tb cl woo-bg-color">
            <li$actives[we]><a href="home.php?mod=space&username=$space[username]&do=home&view=we">{lang friend_feed}</a></li -->
            <li$actives[me]><a href="home.php?mod=space&username=$space[username]&do=home&view=me">{lang my_feed}</a></li -->
            <!-- li$actives[all]><a href="home.php?mod=space&do=home&view=all">{lang view_all}</a></li -->
            <!--{if $_G['setting']['my_app_status']}-->
            <li$actives[app]><a href="home.php?mod=space&do=home&view=app">{lang view_app_feed}</a></li>
            <!--{/if}-->
            <!--{hook/space_home_navlink}-->
            <!--{if $_G['setting']['magicstatus'] && $_G['setting']['magics']['thunder'] && $_G['uid'] == $space['uid']}-->
            <li class="y"><a id="a_magic_thunder" href="home.php?mod=magic&mid=thunder" onclick="showWindow('magics', this.href, 'get', 0)">{$_G[setting][magics][thunder]}</a></li>
            <!--{/if}-->
        </ul>
		<div class="bm block nobtop">
			<div class="bm_c dxb_bc">
<!--{/if}-->

			<div id="feed_div" class="e">
            
			<!--{if $hotlist && $_GET['order'] == 'hot'}-->
				<h4 class="et">
                	<a href="home.php?mod=space&do=home&view=all&order=hot" class="y xw0 feed_small">{lang view_more_hot} <em>&rsaquo;</em></a>{lang recent_recommended_hot}
                </h4>
				<ul class="el">
				<!--{loop $hotlist $value}-->
                    <!--{eval $value = mkfeed($value);}-->
                    <!--{template home/space_feed_li}-->
				<!--{/loop}-->
				</ul>
			<!--{/if}-->
			
			<!--{if $list}-->
				<!--{if $_GET[view] == 'app' && $_G['setting']['my_app_status']}-->
				
					<div class="xld xlda mtm">
						<!--{loop $list $appicon $values}-->
							<dl class="bbda cl">
								<dd class="m avt">
									<a href="userapp.php?mod=app&id=$appicon"><img src="http://appicon.manyou.com/logos/$appicon" alt="" /></a>
								</dd>
								<dd class="cl">
									<ul class="el">
										<!--{loop $values $value}-->
										<li class="cl">
											<a class="t" href="userapp.php?icon=$value[icon]" title="{lang just_look_dynamic}">
												<img width="16" height="16" {if $_G[cache][myapp][$value[icon]][icon]}src="$_G[cache][myapp][$value[icon]][icon]" onerror="this.onerror=null;this.src='http://appicon.manyou.com/icons/$value[icon]'"{else} src="http://appicon.manyou.com/icons/$value[icon]"{/if} />
											</a>
											$value[title_template] <span class="xg1"><!--{date($value[dateline], 'H:i d/m')}--></span>
	
											<div class="ec">
												<!--{if $value['image_1']}-->
												<a href="$value[image_1_link]"{$value[target]}><img src="$value[image_1]" class="tn" /></a>
												<!--{/if}-->
												<!--{if $value['image_2']}-->
												<a href="$value[image_2_link]"{$value[target]}><img src="$value[image_2]" class="tn" /></a>
												<!--{/if}-->
												<!--{if $value['image_3']}-->
												<a href="$value[image_3_link]"{$value[target]}><img src="$value[image_3]" class="tn" /></a>
												<!--{/if}-->
												<!--{if $value['image_4']}-->
												<a href="$value[image_4_link]"{$value[target]}><img src="$value[image_4]" class="tn" /></a>
												<!--{/if}-->
	
												<!--{if $value['body_template']}-->
												<div class="detail"{if $value['image_3']} style="clear: both; zoom: 1;"{/if}>
													$value[body_template]
												</div>
												<!--{/if}-->
	
												<!--{if $value['body_general']}-->
												<div class="">$value[body_general]</div>
												<!--{/if}-->
											</div>
										</li>
									<!--{/loop}-->
									</ul>
								</dd>
							</dl>
						<!--{/loop}-->
					</div>
				<!--{else}-->
					<div class="xld xlda mtm">
                	<!--{loop $list $day $values}-->
						<!--{if $_GET['view']!='hot'}-->
							<h4 class="et">
								<span><!--{if $day=='yesterday'}-->{lang yesterday}<!--{elseif $day=='today'}-->{lang today}<!--{else}-->$day<!--{/if}--></span>
							</h4>
						<!--{/if}-->
						<!-- HIEN THI FEED NEW -->
                        <!--{loop $values $value}-->
                        	<!--{eval $morelist = $more_list[$day][$value[uid]];}-->
                         <dl class="bbda cl">
                            <dd class="m avt">
                                <!--{if $value[uid]}-->
                                    <a href="home.php?mod=space&uid=$value[uid]" c="1"><!--{avatar($value[uid],small)}--></a>
                                    <!--p><a href="home.php?mod=space&uid=$value[uid]" title="$value[username]">$value[username]</a></p -->
                                <!--{else}-->
                                	<img src="{IMGDIR}/systempm.png" width="48" height="48" alt="" />
                                <!--{/if}-->
                            </dd>
                            <dd class="cl">
                                <ul class="el">
                                    <!--{template home/space_feed_li}-->
                                </ul>
                            <!--{if $morelist}-->
                            <!--{eval $langmoreuser = "lang('home/template', 'open')";}-->
                                <p class="xg1 cl feed_small"><span onclick="showmore('$day', '$value[uid]', '$value[username]', this);" class="unfold">{lang open} $value[username]</span></p>
                                <div id="feed_more_div_{$day}_{$value[uid]}" style="display:none;">
                                    <ul class="el">                    
                                    <!--{loop $morelist $value}-->
                                        <!--{template home/space_feed_li}-->
                                    <!--{/loop}-->
                                    </ul>
                                </div>
                                <!--{eval $more_list[$day][$value[uid]] = '';}-->
                            <!--{/if}-->
                            </dd>
                        </dl>
    					<!--{/loop}-->                        
                    <!--{/loop}-->
                    </div>
				<!--{/if}-->
<!-- Echo Feed -->
			<!--{elseif $feed_users}-->
				<div class="xld xlda mtm">
				<!--loop $feed_users $day $users-->
                    <h4 class="et">
                        <!--{if $day=='yesterday'}-->{lang yesterday}<!--{elseif $day=='today'}-->{lang today}<!--{else}-->$day<!--{/if}-->
                    </h4>
                    <!--loop $users $user-->
                        <!--{eval $daylist = $feed_list[$day];}-->
                        <!--{eval $morelist = $more_list[$day][$user[uid]];}-->
                        <!--{loop $daylist $value}-->
                        <dl class="bbda cl">
                            <dd class="m avt">
                                <!--{if $user[uid]}-->
                                    <a href="home.php?mod=space&uid=$value[uid]" c="1"><!--{avatar($value[uid],small)}--></a>
                                    <!-- p><a href="home.php?mod=space&uid=$user[uid]" title="$user[username]">$user[username]</a></p -->
                                <!--{else}-->
                                	<img src="{IMGDIR}/systempm.png" width="48" height="48" alt="" />
                                <!--{/if}-->
                            </dd>
                            <dd class="cl">
                                <ul class="el">
                                    <!-- loop $daylist $value -->
                                    	<!-- Hien thi tat ca cac feed moi cap nhat -->
                                        <!--{template home/space_feed_li}-->
                                    <!-- /loop -->
                                </ul>

                                <!--{if $morelist}-->
                                <!--{eval $langmoreuser = "lang('home/template', 'open')";}-->
                                    <p class="xg1 cl feed_small"><span onclick="showmore('$day', '$user[uid]', this);" class="unfold">{lang open}</span></p>
                                    <div id="feed_more_div_{$day}_{$user[uid]}" style="display:none;">
                                        <ul class="el">
                                        	
                                        <!--{loop $morelist $value}-->
                                            <!--{template home/space_feed_li}-->
                                        <!--{/loop}-->
                                        </ul>
                                    </div>
                                <!--{/if}-->
                            </dd>
                        </dl>
                        <!--{/loop}-->
					<!--/loop-->
				<!--/loop-->
				</div>
			<!--{/if}-->

			<!--{if $filtercount}-->
				<div class="i" id="feed_filter_notice_{$start}">
					{lang depending_your} <a href="home.php?mod=spacecp&ac=privacy&op=filter" class="xi2 xw1">{lang filter_settings}</a>,{lang shield_feed_message} (<a href="javascript:;" onclick="filter_more($start);" id="a_feed_privacy_more" class="xi2">{lang click_view}</a>)
				</div>
				<div id="feed_filter_div_{$start}" style="display:none;">
					<h4 class="et">{lang following_feed_shielding}</h4>
					<ul class="el">
					<!--{loop $filter_list $value}-->
						<!--{template home/space_feed_li}-->
					<!--{/loop}-->
					<li><a href="javascript:;" onclick="filter_more($start);">&laquo; {lang pack_up}</a></li>
					</ul>
				</div>
			<!--{/if}-->

			</div>
			<!--/id=feed_div-->
            <!--{if $multi}-->
				<div class="pgs cl mtm">$multi</div>
			<!--{/if}-->

<!--{if empty($diymode)}-->

			<!--{hook/space_home_bottom}-->
			<div id="ajax_wait"></div>
		</div>

	</div>
	<!--/content-->
</div>

<!--{else}-->
			
			</div>
		</div>
	</div>
    
    
    <!--
	<div class="sd">
		<subtemplate home/space_userabout>
	</div>
    !-->
    <div class="sd">
		<!--{subtemplate home/space_left_more}-->
	</div>
</div>
<!--{/if}-->

<!--{eval my_checkupdate();}-->

<script type="text/javascript">
	function filter_more(id) {
		if($('feed_filter_div_'+id).style.display == '') {
			$('feed_filter_div_'+id).style.display = 'none';
			$('feed_filter_notice_'+id).style.display = '';
		} else {
			$('feed_filter_div_'+id).style.display = '';
			$('feed_filter_notice_'+id).style.display = 'none';
		}
	}

	function close_feedbox() {
		var x = new Ajax();
		x.get('home.php?mod=spacecp&ac=common&op=closefeedbox', function(s){
			$('feed_box').style.display = 'none';
		});
	}

	function showmore(day, uid, username, e) {
		var obj = 'feed_more_div_'+day+'_'+uid;
		$(obj).style.display = $(obj).style.display == ''?'none':'';
		if(e.className == 'unfold'){
			e.innerHTML = '{lang pack_up}';
			e.className = 'fold';
		} else if(e.className == 'fold') {
			e.innerHTML = '{lang open} ' + username;
			e.className = 'unfold';
		}
	}

	var elems = selector('li[class~=magicthunder]', $('feed_div'));
	for(var i=0; i<elems.length; i++){
		magicColor(elems[i]);
	}

	function showEditAvt(id) {
		$(id).style.display = $(id).style.display == '' ? 'block' : '';
	}
	if($('edit_avt') && BROWSER.ie && BROWSER.ie == 6) {
		_attachEvent($('edit_avt'), 'mouseover', function () { showEditAvt('edit_avt_tar'); });
		_attachEvent($('edit_avt'), 'mouseout', function () { showEditAvt('edit_avt_tar'); });
	}
	var loadfeed = false;
	/*
	//objFeedOnWall.onresize = function(){window.alert(document.documentElement.clientHeight + '/' + document.body.clientWidth);}
	window.onscroll = function(){
		if ('pageXOffset' in window) {  // all browsers, except IE before version 9
			var scrollTop = window.pageYOffset;
		} else {      // Internet Explorer before version 9
			var zoomFactor = GetZoomFactor ();
			var scrollTop = Math.round (document.documentElement.scrollTop / zoomFactor);
		}
		//alert ("The current vertical scroll amount: " + scrollTop + "px \- Page height: " + document.body.clientHeight + "px - window height: " + document.documentElement.clientHeight + "px");
		var xScroll = Math.round(document.body.clientHeight / document.documentElement.clientHeight);
		//window.alert(xScroll);
		var cSroll = Math.round(scrollTop/document.documentElement.clientHeight)
		if( cSroll >= xScroll - 1 && loadfeed == false){
			loadfeeding();
		}
	}
	
	function loadfeeding(){
		loadfeed = true;
		window.alert("End Page");
		setTimeout(function(){
			loadfeed = false;	
		}, 5000);
	}
	*/
</script>
<!--{subtemplate common/footer}-->